﻿#ifndef APPLICATION_H
#define APPLICATION_H

#include <QApplication>

class Application : public QApplication
{
    Q_OBJECT
public:
    Application(int &argc, char **argv);

    /* crashpad */
    bool startCrashHandler();

    void initDir();
    void initLog();
    void initConfig();

    bool addTranslation();

    virtual ~Application();

public:
    /* 单例APP */
    static bool setSingleApp(const char* uniqueProgram);
    static bool init();
};

#endif // APPLICATION_H
